#include "top.h"


int main()
{
	while(1)
	{
	//界面
	cover();

	int op;
	printf(":>");
	if(!scanf("%d",&op))
	{
		while(op != '\0') getchar();

		op = -1;
	}

	switch(op)
	{
		case 1:
			{
				map();
				getchar();
			}
			break;
		case 2:
			{
				map2();
			}
			break;
		case 0:
			{
				system("clear");
				printf("\ngame over！\n\n");
				return 0;
			}
			break;
		default:
			{
				printf("请重新输入\n");

			}
			break;
	}
	}
	return 0;
}
